home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mm / mm-0.90 / rd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-18  |  1.9 KB  |  65 lines

  1. /*
  2.  * Copyright (c) 1986, 1990 by The Trustees of Columbia University in
  3.  * the City of New York.  Permission is granted to any individual or
  4.  * institution to use, copy, or redistribute this software so long as it
  5.  * is not sold for profit, provided this copyright notice is retained.
  6.  */
  7.  
  8. #ifndef lint
  9. static char *rcsid = "$Header: /f/src2/encore.bin/cucca/mm/tarring-it-up/RCS/rd.c,v 2.1 90/10/04 18:25:39 melissa Exp $";
  10. #endif
  11.  
  12. /*
  13.  * rd.c:
  14.  * structure of routines for reading mail files
  15.  */
  16.  
  17. #include "mm.h"
  18. #include "parse.h"
  19. #define MSGOPS
  20. #include "rd.h"
  21.  
  22. /* 0 */
  23. extern int babyl_close(), babyl_rdmsg(), babyl_wrmsg(), babyl_probe(),
  24.   babyl_open();
  25. /* 1 */
  26. extern int mbox_close(), mbox_rdmsg(), mbox_wrmsg(), mbox_probe(), 
  27.   mbox_open();
  28. /* 2 */
  29. extern int mh_close(), mh_rdmsg(), mh_wrmsg(), mh_probe(), mh_open();
  30. /* 3 */
  31. extern int mtxt_close(), mtxt_rdmsg(), mtxt_wrmsg(), mtxt_probe(),
  32.   mtxt_open();
  33. /* 4 */
  34. extern int pop2_close(), pop2_rdmsg(), pop2_wrmsg(), pop2_probe(),
  35.   pop2_open();
  36. /* 5 */
  37. extern int pop3_close(), pop3_rdmsg(), pop3_wrmsg(), pop3_probe(),
  38.   pop3_open();
  39.  
  40. /*
  41.  * this MUST stay in alphabetical order
  42.  * to line up with the keyword table below
  43.  */
  44. msg_handler msg_ops[] = {
  45.                     /* babyl (RMAIL) file  */
  46.     { "babyl", babyl_open, babyl_close, babyl_rdmsg, babyl_wrmsg, 
  47.       babyl_probe },
  48.                     /* unix mailbox */
  49.     { "mbox", mbox_open, mbox_close, mbox_rdmsg, mbox_wrmsg, mbox_probe },
  50.                     /* mh type (folders) */
  51.     { "mh", mh_open, mh_close, mh_rdmsg, mh_wrmsg, mh_probe },
  52.                     /* MM-20 mail.txt */
  53.     { "mtxt", mtxt_open, mtxt_close, mtxt_rdmsg, mtxt_wrmsg, mtxt_probe },
  54.                     /* pop2 client */
  55.     { "pop2", pop2_open, pop2_close, pop2_rdmsg, pop2_wrmsg, pop2_probe },
  56.                     /* pop 3 client.   not written yet */
  57.     { "pop3", pop3_open, pop3_close, pop3_rdmsg, pop3_wrmsg, pop3_probe },
  58. };
  59. num_msg_ops = sizeof(msg_ops) / sizeof(msg_handler);
  60.  
  61. /*
  62.  * make sure to update keywrd formatkeys[], which should be in
  63.  * formattab.c
  64.  */
  65.